const state = {
    addRoutes: [],
}


const mutations = {
    SET_ROUTES: (state: any, routes: any) => {
        state.addRoutes = routes
    },
}

const actions = {
    GenerateRoutes({commit},routes) {
            commit('SET_ROUTES', routes)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}